package info.javafans.cdn.web.action;

import info.javafans.cdn.struct.ActionMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

public class Action {
	protected ActionMapping actionMapping = null;
	
	/**
	 * execute
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	public String execute(HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return null;
	}
	
	/**
	 * 设置ActionMapping
	 * @param mapping
	 */
	public void setActionMapping(ActionMapping mapping) {
		this.actionMapping = mapping;
	}
	
	/**
	 * 获得ActionMapping
	 * @return
	 */
	public ActionMapping getActionMapping() {
		return this.actionMapping;
	}
}
